[#ftl]

[#assign datetimeformat="MMM dd yyyy HH:mm"]


[#-- Activity List View Template --]

[#macro activities feed]
	<div style="font-weight:bold">${feed.title}</div>
	[#list feed.entries as entry]
		<div style="margin:10px">
			<div>${entry.title}</div>
			<div style="">${entry.updated?datetime}</div>
			<div>${entry.summary}</div>			
		</div>
	[/#list]
[/#macro]

[#-- User Profile View Template --]

[#macro profile json endpoint endpointurl]
	<div style="font-weight:bold">${json.userName}</div>
	
	<div style="margin-bottom: 10px;">
		<div>
			<span>${json.firstName} ${json.lastName}</span>
			<br/>Email: ${json.email}
			<br/>Bio: ${json.persondescription}
		</div>
		<div style="clear:both"></div>
	</div>
	
[/#macro]

[#-- Keyword HTML View Template --]

[#macro keyword results endpoint]
	${results?replace('/alfresco/s',"/proxy/"+endpoint)}
[/#macro]
